<template>
    <div class="group-component-temp">
        <div class="content" v-if="detailData.describe">
            <div class="title">工作场景描述</div>
            <div class="content">
                <div class="desc">{{ detailData.describe }}</div>

                <!-- <ul class="link-box" v-if="link">
                    <li>包含4个学习内容</li>
                    <li>包含4个学习内容</li>
                </ul> -->
            </div>
        </div>
        <div class="content" v-if="detailData.detail">
            <div class="title">岗位工作职责任务</div>
            <div class="content">
                <div class="desc">{{ detailData.detail }}</div>
            </div>
        </div>
        <div class="content" v-if="detailData.capability">
            <div class="title">岗位工作能力及技术、知识要求</div>
            <div class="content">
                <div class="desc">
                    <pre>{{ detailData.capability }}</pre>
                </div>
            </div>
        </div>
        <div class="content" v-if="detailData.benefit">
            <div class="title">学习内容和收获</div>
            <div class="content">
                <div class="desc">{{ detailData.benefit }}</div>
            </div>
        </div>
        <div class="content" v-if="detailData.list">
            <div class="title">培训计划清单</div>
            <div class="content">
                <div class="desc">{{ detailData.list }}</div>
            </div>
        </div>
        <div class="content" v-if="detailData.note">
            <div class="title">备注/学习建议</div>
            <div class="content">
                <div class="desc">{{ detailData.note }}</div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    components: {

    },
    props: {
        link: {
            type: Boolean,
            default: false,
        },
        detailData: {
            type: Object,
            default: () => {},
        },
    },
    data() {
        return {

        };
    },
    methods: {

    },
    mounted() {
    },
};
</script>

<style lang="scss" scoped>
.group-component-temp {
    width: 700px;
    padding: 13px 11px;
    box-sizing: border-box;

    .content {
        margin-bottom: 23px;

        &:last-child {
            margin-bottom: 0;
        }
    }

    .title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .desc {
        font-size: 12px;
    }

    .link-box {
        list-style-type: disc;
        margin-top: 17px;
        padding-left: 16px;
        box-sizing: border-box;

        li {
            width: fit-content;
            height: 17px;
            margin-bottom: 8px;
            box-sizing: border-box;
            padding-bottom: 1px;
            cursor: pointer;

            &:last-child {
                margin-bottom: 0;
            }

            &:hover {
                border-bottom: 1px solid #fff;
            }
        }
    }
}
</style>
